package system

// 数据权限
type SysDataAuth struct {
	CampusList []*DataAuthCampus `description:"校区数据权限"`
}

type DataAuthCampus struct {
	CampusId    int              `description:"校区ID"`
	CampusName  string           `description:"校区名称"`
	CampusIsSet bool             `description:"true，已设置，false:未设置"`
	ClassList   []*DataAuthClass `description:"班级数据权限"`
}

type DataAuthClass struct {
	ClassId    int    `description:"班级ID"`
	ClassName  string `description:"班级名称"`
	ClassIsSet bool   `description:"true，已设置，false:未设置"`
}

type DataAuthSave struct {
	SysUserId  uint64                `description:"用户id"`
	CampusList []*DataAuthCampusSave `description:"校区ID"`
}

type DataAuthCampusSave struct {
	CampusId  int                  `description:"校区ID"`
	ClassList []*DataAuthClassSave `description:"班级ID"`
}

type DataAuthClassSave struct {
	ClassId int `description:"班级ID"`
}

type DataAuthListReq struct {
	SysUserId int `description:"用户id"`
}
